package com.anolesoft.twelvePlan.entity;

import com.anolesoft.twelvePlan.listener.LocalDateTimeDeSerializer;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @author zyq
 * @date 2022/2/22
 * 外协目录表
 */

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("mes_wx_info")
public class MesWxInfoDO implements Serializable {
    private static final long serialVersionUID = -734163080157802233L;
    @TableId
    //private String objuid;//主键
    //private String jx;//机型
    //private String partId;//图号
    //private String name;//名称
    //private String material;//材料
    //private String ljSize;//零件净尺寸
    //private String pgh;//派工号
    //private Integer djNum;//单机数量
    //private Integer cgNum;//采购数量
    //private String wxProcess;//外协工序
    //private String newOrContinue;//新增/延续
    //private String selfFlag;//自制标记 是/否
    //private String category;//类别
    //private String wxFactory;//外协厂家
    //private String remarks1;//备注1
    //private String remarks;//备注
    //private Integer deleteFlag;//删除标记 0：未删除 1：已删除
    //private String createUid;//创建人
    //private LocalDate createTime;//创建时间
    //private String modifyUid;//修改人
    //private LocalDate modifyTime;//修改时间
    //private String deleteUid;//删除人
    //private LocalDate deleteTime;//删除时间
    //private String factoryId;//厂代号
    private String objuid;
    private String jx;
    private String partid;
    private String name;
    private String material;
    private String ljsize;
    private String pgh;
    private Integer djnum;
    private Integer cgnum;
    private String wxprocess;
    private String neworcontinue;
    private String selfflag;
    private String category;
    private String wxfactory;
    private String remarks1;
    private String remarks;
    private Integer deleteflag;
    private String createuid;
    @JsonDeserialize(using = LocalDateTimeDeSerializer.class)
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime createtime;
    private String modifyuid;
    @JsonDeserialize(using = LocalDateTimeDeSerializer.class)
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime modifytime;
    private String deleteuid;
    @JsonDeserialize(using = LocalDateTimeDeSerializer.class)
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime deletetime;
    private String factoryId;
}
